package com.study.hot.di.dagger;

import android.app.Application;

import dagger.hilt.android.HiltAndroidApp;

/**
 * <pre>
 *     author : slx
 *     time   : 2020/11/24
 *     desc   :
 * </pre>
 */
@HiltAndroidApp
public class DaggerApp extends Application/*DaggerApplication*/ {
    @Override
    public void onCreate() {
        super.onCreate();
    }

    // Dagger2使用
    /*@Override
    protected AndroidInjector<? extends DaggerApplication> applicationInjector() {
        return DaggerAppComponent.builder().application(DaggerApp.this).build();
    }*/

    public void testInject() {
        System.out.println("Application inject。。。");
    }
}
